package com.example.PDFdemo.pdftest;

import com.itextpdf.text.DocumentException;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import static com.example.PDFdemo.pdftest.PDFUtil.pdfAddText;

public class Test {
    public static void main(String[] args) throws DocumentException, IOException {
        String oldFile = "C:\\Users\\admin\\Desktop\\骑缝章.pdf";
        String newFile = "C:\\Users\\admin\\Desktop\\test2.pdf";
        List<PDFModel> modules = new ArrayList<>();
        modules.add(new PDFModel("1111111", 120f, 600f, 1, 20f, "宋体"));
        modules.add(new PDFModel("√111111", 120f, 580f, 1, 20f, "宋体"));
        pdfAddText(oldFile, newFile, modules);
    }
}
